/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bugman.business.impl;

import com.bugman.business.*;
import com.bugman.filters.BugFilter;
import java.io.Serializable;
import javax.ejb.Stateful;

/**
 *
 * @author Flashman
 */
@Stateful
public class FilterServiceBean extends BaseServiceBean implements FilterService, Serializable {
    //TODO for Flashman: Write Javadoc
    private BugFilter bugFilter;

    public BugFilter getBugFilter() {
        if(bugFilter == null){
            bugFilter = new BugFilter();
            logger.info("creating bug filter");
        }
        logger.info("using bug filter");
        return bugFilter;
    }

    public void setBugFilter(BugFilter bugFilter) {
        this.bugFilter = bugFilter;
    }

}
